package Exercise01;

public class Maths {
    public static void main(String[] args) {

        double num1 = 3.2;
        double num2 = 5.6;

        //向上取整
        double res1 = (Math.ceil(num1));
        //向下取整
        double res2 = (Math.floor(num1));
        //四舍五入
        double res3 = (Math.round(num2));
        //2的3次幂
        double res4 = (Math.pow(2,3));

        System.out.println("向下取整"+res1+"向下取整"+res2+"四舍五入后的值是"+res3+"次幂"+res3);

    }
}
